﻿/**
 *
 * weight.h
 *
 *  Created on: 2019-11-20
 *      Author: chenshisheng
 */

#ifndef INC_WEIGHT_H_
#define INC_WEIGHT_H_

#include "main.h"

#define WEIGHT_SENSOR_NUM 4

typedef struct
{
    float k;
    float a;
} Weight_CalibrationParameter_t;

void Weight_Init(void);
bool Weight_IsAllReady(void);
void Weight_Calibrate(void);
void Weight_ClearCalibration(void);
void Weight_Update(void);

#endif /* INC_WEIGHT_H_ */
